package com.neuedu.extend;

/**
 *  继承
 */
public class Runner {

    public static void main(String[] args) {
        //动物园
//        Animal el = new Animal("艾米丽",60.38);
//        el.show();


        Animal beibei = new Panda("贝贝",90.65);
        beibei.show();
        beibei.eat();


        Panda jingjing = new Panda("晶晶",90.65);
        jingjing.show();
        jingjing.eat();

        Animal tig = new Tiger("贝贝",90.65);
        Animal panpan = new Panda("盼盼",90.65);

        tig.eat();
        panpan.eat();

        //可以访问price
//        System.out.println(jingjing.price);
//        System.out.println(jingjing.age);


//        for (int i = 0; i < 10; i++) {
//            System.out.println(Earth.getInstatnce());
//        }



    }
}
